import {
	createWebHistory,
	createRouter
} from 'vue-router'

const history = createWebHistory()
// 路由文件 -- 配置组件的访问路径
const router = createRouter({
	history,
	routes: [{
			path: '/ShowOne',
			name: 'ShowOne',
			component: () => import('@/components/ShowOne'),
		},
		{
				path: '/Fenlei/:id',
				name: 'Fenlei',
				component: () => import('@/components/Fenlei'),
			},
		{
			path: '/Admin',
			name: 'Admin',
			component: () => import('@/components/Admin'),
		},
		{
			path: '/UsersManage',
			name: 'UsersManage',
			component: () => import('@/components/UsersManage'),
		},
		{
			path: '/BooksManage',
			name: 'BooksManage',
			component: () => import('@/components/BooksManage'),
		},
		{
			path: '/TypeManage',
			name: 'TypeManage',
			component: () => import('@/components/TypeManage'),
		},
		{
			path: '/Card',
			name: 'Card',
			component: () => import('@/components/Card'),
		},
		{
			path: '/Myorders',
			name: 'Myorders',
			component: () => import('@/components/Myorders'),
		},
		{
			path: '/OrdersManage',
			name: 'OrdersManage',
			component: () => import('@/components/OrdersManage'),
		},
		{
			path: '/MyComments',
			name: 'MyComments',
			component: () => import('@/components/MyComments'),
		},
		{
			path: '/Shoucang',
			name: 'Shoucang',
			component: () => import('@/components/Shoucang'),
		},
		
		{
			path: '/Myself',
			name: 'Myself',
			component: () => import('@/components/Myself'),
		},
		{
			path: '/',
			name: 'Index',
			component: () => import('@/components/Index')
		},
		
		{
			path: '/Login',
			name: 'Login',
			component: () => import('@/components/Login'),
		},
		{
			path: '/Regist',
			name: 'Regist',
			component: () => import('@/components/Regist'),
		},
		
		{
			path: '/Myaddress',
			name: 'Myaddress',
			component: () => import('@/components/Myaddress'),
		},
		
		{
			path: '/LunboManage',
			name: 'LunboManage',
			component: () => import('@/components/LunboManage'),
		},
		
		
	]
})

export default router
